const state = {
  isDark: true // 默认使用暗色主题
}

const mutations = {
  TOGGLE_THEME(state) {
    state.isDark = !state.isDark
  }
}

const actions = {
  toggleTheme({ commit }) {
    commit('TOGGLE_THEME')
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
} 